<template>
	<view>

		<my-tab @ontap='ontap' :data="{
		 	id:info.cur_id,
		 	type:1
		 }" :dianzan='info.collection' />
		<yuyuet @onc='onc' :info='info' :yt='yt' :change2='change2' />
		<!-- 	<view class="body2">
			<view style="margin-top: 10rpx;">
				<u-tabs :list="list" active-color='#131314' :is-scroll="false" :current="current" @change="change">
				</u-tabs>
				<view class="xian"></view>
			</view>
			<view >
				<view class="body2_2">
					<view class="body2_2_1">如何让你的课堂气氛更加活跃</view>
					<view class="body2_2_2">09-10 20:00</view>
					<view class="body2_2_3">
						<u-read-more color='#91969A' :toggle="true" :shadow-style="shadowStyle">
							<rich-text
								style="font-size: 28rpx;font-family: Source Han Sans CN;font-weight: 400;color: #131314;opacity: 1;"
								:nodes="content" />
						</u-read-more>
					</view>
				</view>
				<view class="body2_3">
					<view class="body2_31">
						主讲人
					</view>
					<view class="body2_3_1">
						<image style="width: 88rpx;height: 88rpx;border-radius: 100%;
						position: relative;top: 10rpx;margin-right: 15rpx;
						" src="https://s4.ax1x.com/2022/01/18/7w51mT.png" mode=""></image>
						<view class="body2_3_2">
							<text class="body2_3_t1">林戈</text>
							<text class="body2_3_t2">智伍汇讲师</text>
						</view>

					</view>
				</view>
				<view style="width: 100%;margin-top: 20rpx;">
					<image style="min-height:1334rpx;width: 100%;" src="https://s4.ax1x.com/2022/01/18/7wIvRA.png" />
				</view>
			</view>
			<view v-if="current==1">
				<view class="topindex">
					<view class="liao">
						<image class="liaoimg" src="https://s4.ax1x.com/2022/01/18/7wOknA.png" />
						<view class="liao2">
							<text>名字名字</text>
							<view class="textn textn01">
								<view class="textn013">
									<view class="textn0">课程内容</view>
									<view class="textn010">欢迎对课程互动</view>
								</view>
								<image style="width: 120rpx;height: 120rpx;"
									src="https://s4.ax1x.com/2022/01/18/7wzclT.png" />
							</view>
						</view>
					</view>
					<view class="xian2"></view>
				</view>
				<view class="" v-for="(item,index) in 8">
					<view class="liao" v-if="index%2">
						<image class="liaoimg" src="https://s4.ax1x.com/2022/01/18/7wOknA.png" />
						<view class="liao2">
							<text>名字名字</text>
							<view class="textn">
								谢谢老师谢谢老师谢谢老师谢谢老师
								谢谢老师谢谢老师谢谢老师谢谢老师
							</view>
						</view>
					</view>
					<view class="liao liaox" v-if="index%2!=0&&!change2">
						<image class="liaoimg" src="https://s4.ax1x.com/2022/01/18/7wOknA.png" />
						<view class="liao2">
							<view lass="liao20" style="text-align: right;font-size: 28rpx;
					font-family: Source Han Sans CN;
					font-weight: bold;
					color: #131314;
					opacity: 1;">名字名字</view>
							<view class="textn">
								谢谢老师谢谢老师谢谢老师谢谢老师
								谢谢老师谢谢老师谢谢老师谢谢老师
							</view>
						</view>
					</view>
				</view>
				<view class="foot">
					<view class="foot_1">
						<image src="https://s4.ax1x.com/2022/01/18/7BAYxs.png" style="width: 40rpx;height: 40rpx;">
						</image>
						<view style="margin: 10rpx;;">
							<u-input v-model="value" placeholder="写留言，留下你的感悟" />
						</view>
					</view>
				</view>
			</view>
		</view> -->
		<!-- 	<u-mask :show="show" @click="show = false">
			<view class="warp">
				<view class="rect" @tap.stop>
					<image style="width: 100%;height: 100%;" src="https://s4.ax1x.com/2022/01/18/7wHmQA.png" mode="" />
				</view>
			</view>
		</u-mask> -->

	</view>
</template>

<script>
	import uTable from '@/components/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue'
	import yuyuet from './com/previewdetails.vue'
	export default {
		components: {
			uTable,
			yuyuet,

		},
		data() {
			return {
				type: "1", //状态1
				yt: "",
				info: {},
				show: false,
				change2: false, //是否主讲
				height: '',
				shadowStyle: {
					backgroundImage: "none",
					paddingTop: "0",
					marginTop: "20rpx",
				},
				content: '儒家文化作为中国文化最重要的组成部分，对中国 的企业管理起着基础和渗透的作用。在风云变换的商海 ，面对沉浮，企业家如何带领自己的企业化为为机，不 断超越儒家文化作为中国文化最重要的组成部分，对中 国的企业管理起着基础和渗透的作用。在风云变换的商 海，面对沉浮，企业家如何带领自己的企业化为为机， 不断超越。企业家如何带领自己的企业化为为机，不断 超越儒家文化作为中国文化最重要的组 成部分，对中国 的企业管理起着基础和渗透的作用。在风云变换的商海 ，面对沉浮，企业家如何带领自己的企业',
				list: [{
					name: '详情'
				}, {
					name: '互动'
				}],
				current: 0,
				cur_id: ''
			}
		},
		onLoad(option) {
			this.cur_id = option.cur_id
			this.getinfo()
			this.type = option.type ? option.type : '1',
				this.height = this.$top
		},
		methods: {
			ontap(a) {
				this.getinfo()
			},
			onc(a) {
				this.current = a
			},
			getinfo() {
				this.$api('broadcast/broMsg', {
					cur_id: this.cur_id
				}).then(res => {
					this.info = res.data
					let b = parseInt(new Date().getTime() / 1000)
					if (res.data.debut_time) {
						this.yt = res.data.debut_time - b
					}
				})
			},
			kaibo() {
				console.log('11')
			},
			change1(status) {},
			change(index) {
				this.current = index;
			}
		}
	}
</script>

<style lang="scss" scoped>
	.foot {
		display: flex;
		position: fixed;
		bottom: 0;
		width: 100%;
		margin: 20rpx;

		.foot_1 {
			padding-left: 20rpx;
			display: flex;
			align-items: center;
			width: 100%;
			height: 68rpx;
			background: #F5F5F5;
			border-radius: 50rpx
		}
	}

	.top01 {
		min-height: 510rpx;
		background-size: 100%;
	}

	.flexd {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 190rpx;
		height: 142rpx;
		right: 0;
		top: 560rpx;
		background: #FFFFFF;
		box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.1);
		opacity: 1;
		border-radius: 8px;
		position: fixed;
		z-index: 100000;

		.texty {
			font-size: 28rpx;
			font-family: Source Han Sans CN;
			font-weight: 500;
			color: #131314;
			opacity: 1;
		}
	}

	.xian2 {
		height: 0px;
		border: 1rpx solid #E3E3E3;
		margin-top: 50rpx;
		margin-bottom: 10rpx;
		opacity: 1;
	}

	.textn01 {
		display: flex;
		justify-content: space-around;
	}

	.textn013 {
		.textn0 {
			margin-top: 15rpx;
			font-size: 28rpx;
			font-family: Source Han Sans CN;
			font-weight: bold;
			color: #131314;
			opacity: 1;

		}

		.textn010 {
			font-size: 24rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #131314;
			margin-top: 15rpx;
			opacity: 1;
		}
	}

	.liaox {
		.liao2 {
			left: 50rpx !important;

			.textn {
				float: right;
			}
		}

		.liaoimg {
			right: 10rpx;
		}
	}

	.liao {
		padding: 10rpx;
		position: relative;

		.liao2 {
			text {
				font-size: 28rpx;
				font-family: Source Han Sans CN;
				font-weight: bold;
				color: #131314;
				opacity: 1;
			}

			display: inline-block;
			position: relative;
			left:100rpx;
			top: 15rpx;
			width: 80%;

			.textn {
				max-width: 444rpx;
				background: #F5F5F5;
				border-radius: 8rpx;
				padding: 20rpx;
			}
		}

		.liaoimg {
			width: 88rpx;
			height: 88rpx;
			border-radius: 100%;
			position: absolute;
			top: 0;
		}
	}

	.warp {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100%;
	}

	.rect {
		width: 518rpx;
		height: 332rpx;
	}

	.body2_3 {
		padding: 20rpx;
	}

	.body2_31 {
		font-size: 32rpx;
		font-family: Source Han Sans CN;
		font-weight: bold;
		color: #131314;
		opacity: 1;
	}

	.body2_3_2 {
		display: inline-block;

		.body2_3_t1 {
			font-size: 28rpx;
			font-family: Source Han Sans CN;
			font-weight: bold;
			color: #131314;
			opacity: 1;
		}

		.body2_3_t2 {
			font-size: 24rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #91969A;
			opacity: 1;
		}

		text {
			display: block;
		}
	}

	.body2_2 {
		padding: 20rpx;

		.body2_2_1 {
			font-size: 32rpx;
			font-family: Source Han Sans CN;
			font-weight: bold;
			color: #131314;
			opacity: 1;
		}

		.body2_2_2 {
			font-size: 24rpx;
			font-family: HarmonyOS Sans;
			font-weight: 400;
			color: #131314;
			opacity: 1;
		}
	}

	::v-deep .u-tab-bar {
		background-color: #FFD500 !important;
		// width: 40px !important ;
	}

	.xian {
		height: 1px;
		background: #EFEFEF;
		opacity: 1;
		border-radius: 0px;
	}

	.body {
		min-height: 380rpx;
		background-color: #131314;

		.body_1 {
			display: flex;
			justify-content: space-between;
		}

		.body_text_3 {
			font-size: 22rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #FFFFFF;
			opacity: 0.6;
		}

		.body_text2 {
			display: flex;
			justify-content: center;
			text-align: center;

			.body_text_2 {
				margin-top: 50rpx;
			}

			.body_text_1 {
				.w {
					color: white;
					font-size: 24rpx;
					margin-right: 10rpx;
				}

				text {
					color: #FFD500;
					font-size: 38rpx;
				}

				font-size: 24rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #E3E3E3;
				opacity: 1;
			}
		}

		.body_text {
			position: relative;
			top: 50rpx;
			left: 30rpx;

			text {
				color: #FFD500
			}

			font-size: 24rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #E3E3E3;
			opacity: 1;
		}
	}
</style>
